package cn.watson.org.mapper;

import cn.watson.basic.mapper.BaseMapper;
import cn.watson.org.domain.Employee;
import cn.watson.org.query.EmployeeQuery;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
* @Description:
* @Author: ZhangRui
* @Version: 1.0
* @Date:  2022/6/21 18:23
*/
@Mapper
public interface EmployeeMapper extends BaseMapper<Employee> {
    // 根据名称查询员工
    Employee loadByUserName(String username);

    /*
    // 分页+高级查询
    List<Employee> queryData(EmployeeQuery employeeQuery);

    // 查询所有
    List<Employee> loadAll();

    // 更具id查询
    Employee loadById(Long id);

    // 更具id删除
    void remove(Long id);

    // 修改
    void update(Employee employee);


    // 新增
    void save(Employee employee);

    // 查询总条数
    Integer queryCount(EmployeeQuery employeeQuery);


    // 批量删除
    void patchDel(List<Long> ids);*/
}
